package cn.edu.scau.cmi.liquan.abstractFactory.factory;

import cn.edu.scau.cmi.liquan.abstractFactory.domainAbstractClass.ConsumerElectronicsDevice;

public abstract class AbstractFactory {
	public static AbstractFactory getFactory(String brand) {
		switch (brand) {
		case "Aonong":
			return new AonongFactory();
		case "Wens":
			return new WensFactory();
		case "Tianbang":
			return new TianbangFactory();
		}
		return null;

	}
	
	public abstract ConsumerElectronicsDevice createBeef();
	public abstract ConsumerElectronicsDevice createChicken();
	public abstract ConsumerElectronicsDevice createPork();

}